tests: Accept slightly different numeric results
authorSimon McVittie <smcv@debian.org>
Tue, 22 Aug 2023 09:49:36 +0000 (10:49 +0100)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 24 Aug 2023 14:27:18 +0000 (10:27 -0400)
commit8a4bde62da09922d225234276f34a0c4809681da
tree2cf40922991791cd9bc23123bc17c4ed11d2887b
parentff56029ccc2ebd55b992c60f4be2ab471ce9da35
tests: Accept slightly different numeric results

FLT_EPSILON is the distance between 1.0 and the next distinct floating
point number, and doesn't necessarily have anything to do with the
precision we can expect from a series of floating-point calculations.
Experimentally, 1e-6 is achievable, even on platforms with unusual
floating point implementations like i387.

Resolves: https://gitlab.gnome.org/GNOME/gtk/-/issues/6051
Bug-Debian: https://bugs.debian.org/1050076
Signed-off-by: Simon McVittie <smcv@debian.org>
testsuite/gtk/colorutils.c